package com.saibo.spider.gather;

import com.saibo.spider.utils.StringUtil;

import java.util.Map;

/**
 * Created by admin on 2017/5/12.
 */
public class MouldSearchWeiboList implements CrawlerInterface{
    Map<String,Object> mso ;
    String url;
    String html;

    public void startMission(String url, String mapInfo) {
        this.url = url;
        mso = StringUtil.jsonToMap(mapInfo);
        int page = Integer.parseInt(mso.get("pageNumber").toString());

        for(int i = 0;i<page;i++){
            //请求
            requestUrl();
            //解析
            parse();
            try {
                Thread.sleep(10*1000);
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

    }

    public void requestUrl() {

    }

    public void parse() {

    }

    public void submit() {

    }
}
